﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DevDL.UserLimit.Models;

namespace DevDL.UserLimit.IDAL
{
    public interface IRoleDAL
    {
        int AddRole(Role role);

        DataSet GetRoles();

        int UpdateRoleDataSet(DataSet ds,int tableIndex);

        int Insert(Role role);

        int Update(Role role);

        int Delete(int id);

        int UpdateFunction(Models.Role role);

        string GetFunctionById(int id);

        string GetFunctionByOperatorId(int id);
    }
}
